<%@page import="com.hh.baseframework.util.Convert"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hh.baseframework.util.Json"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setCharacterEncoding("UTF-8");
	
	String params =request.getParameter("params");
	Map<String,Object> map = Json.toMap(params);
	String html =  Convert.toString(map.get("html"));
	String type =  Convert.toString(map.get("type"));
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<base href="<%=basePath%>">
<title>打印</title>
<head>
</head>
<body><%=html%>
</body>
<script type="text/javascript">
if('print'=='<%=type%>'){
	window.print();
}
</script>
</html>